package com.example.studyplanning.servicesImpl;

import com.example.studyplanning.entity.Focus;
import com.example.studyplanning.mapper.FocusMapper;
import com.example.studyplanning.services.FocusServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FocusServicesImpl implements FocusServices {
    @Autowired
    private FocusMapper focusMapper;

    @Override
    public Integer InsertFocus(Focus focus) {
        return focusMapper.InsertFocus(focus);
    }

    @Override
    public List<Focus> findAllFocus(Integer userID) {
        return focusMapper.findAllFocus(userID);
    }

    @Override
    public Integer DelFocus(Integer tipsID) {
        return focusMapper.DelFocus(tipsID);
    }

    @Override
    public Integer FindFocus(Integer userID, Integer tipsID) {
        return focusMapper.FindFocus(userID, tipsID);
    }
}
